import request from "../utils/request";

// 首页接口
export const home = (data) => {
  return request({
    url: "/mobile/index",
    method: "post",
    data: data
  });
};

// 商品数据
export const goods = (data) => {
  return request({
    url: "/mobile/commodity",
    method: "post",
    data: data
  });
};

// 购物车添加
export const addCart = (data) => {
  return request({
    url: "/mobile/shopping/add",
    method: "post",
    data: data
  });
};